<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8" />
  <title>Updating the purge rule on a real-time temporal layer</title>
  <style>
    table, th, td {
      border: 1px solid black;
      border-collapse: collapse;
    }
    th, td {
      padding: 5px;
    }
    th {
      font-weight: bold;
    }
  </style>
</head>
<body>
  ## Updating the purge rule on a real-time temporal layer

  <div xmlns="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53">This sample demonstrates the following:</div>

*   <div>Retrieving the temporal layers in a map or globe.</div>

*   <div>Retrieving and setting the purge rule used by a temporal feature class.</div>

*   <div>Setting the threshold and purge percentage properties for a temporal feature class.</div>  

```
Language:              C#, VB
Subject:               Tracking
Organization:          Esri, http://www.esri.com
Date:                  10/17/2019
ArcObjects SDK:        10.8
Visual Studio:         2017, 2019
.NET Target Framework: 4.5
```

### Resources

* [ArcObjects .NET API Reference online](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm)  
* [Sample Data Download](../../releases)  
* [What's new](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#91cabc68-2271-400a-8ff9-c7fb25108546.htm)  
* [Download the ArcObjects SDK for .Net from MyEsri.com](https://my.esri.com/)  

### Usage
1. Open and build the .NET solution.  
1. Add the command to ArcMap, ArcGlobe, or an existing MapControl or GlobeControl application.  
1. Open a document that has at least one real-time temporal layer or add a real-time layer to your display.  
1. Click the command to have it show a dialog box for changing the purge rule settings.  
1. Select the temporal layer to which you want to change the settings.  
1. Modify purge rule settings and click Apply.  

---------------------------------

#### Licensing  
<table><tr><th> Development licensing </th><th> Deployment licensing </th></tr>
<tr><td> Engine Developer Kit </td><td> Engine: Tracking Analyst </td></tr>  
<tr><td> ArcGIS Desktop Basic: Tracking Analyst </td><td> ArcGIS Desktop Basic: Tracking Analyst </td></tr>  
<tr><td> ArcGIS Desktop Standard: Tracking Analyst </td><td> ArcGIS Desktop Standard: Tracking Analyst </td></tr>  
<tr><td> ArcGIS Desktop Advanced: Tracking Analyst </td><td> ArcGIS Desktop Advanced: Tracking Analyst </td></tr>  
</table>
</body>
</html>